package com.init.iblog;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = "com.init")   //启动类启动时，在com.atguigu此包下的配置类均加载
@MapperScan("com.init.iblog.mapper")
public class IblogBackApplication {
    public static void main(String[] args) {
        SpringApplication.run(IblogBackApplication.class, args);
    }
}
